package com.cqc.flycotablayout01.module;

import com.flyco.tablayout.listener.CustomTabEntity;

/**
 * Created by ${cqc} on 2017/9/12.
 * 自定义标题：继承CustomTabEntity
 */

public class TabModule implements CustomTabEntity {
    private String title;
    private int iconId;
    private int iconUnSelectId;

    public TabModule(String title, int iconId, int iconSelectId) {
        this.title = title;
        this.iconId = iconId;
        this.iconUnSelectId = iconSelectId;
    }

    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return iconId;
    }

    @Override
    public int getTabUnselectedIcon() {
        return iconUnSelectId;
    }
}
